home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / mac / files / infodata / callbook.tar / callbook_1.3 / server_patches < prev    next >
Internet Message Format  |  1991-04-05  |  11KB

  1. From bihler@sequent.com Thu Apr  4 23:35:06 1991
  2. Received: from electra.cs.Buffalo.EDU by castor.cs.Buffalo.EDU (4.1/1.01)
  3.     id AA23553; Thu, 4 Apr 91 23:35:04 EST
  4. Received: from gateway.sequent.com ([138.95.18.1]) by electra.cs.Buffalo.EDU (4.1/1.01)
  5.     id AA25902; Thu, 4 Apr 91 23:36:31 EST
  6. Received: from crg8.sequent.com by gateway.sequent.com (5.61/1.34)
  7.     id AA01672; Thu, 4 Apr 91 20:36:30 -0800
  8. Received: by crg8.sequent.com (5.61/1.34)
  9.     id AA23062; Thu, 4 Apr 91 20:35:54 -0800
  10. Message-Id: <9104050435.AA23062@crg8.sequent.com>
  11. To: bowen@cs.Buffalo.EDU (Devon E Bowen)
  12. Cc: bihler@sequent.com
  13. Subject: Re: Callbook Server (Really: BUG!) 
  14. In-Reply-To: Your message of "Sun, 03 Mar 91 18:52:00 EST."
  15.              <9103032352.AA15669@castor.cs.Buffalo.EDU> 
  16. Date: Thu, 04 Apr 91 20:35:52 PST
  17. From: Steve Bihler <bihler@sequent.com>
  18. Status: R
  19.  
  20. # >  The modifications are relatively minor. If you're interested in them,
  21. # >  I'd be glad to forward them to you, just let me know.
  22. # Yes, I'd be interested in including them in my code if you don't mind
  23. # sending the patches. The code I released is filthy. I never really
  24. # intended to release it but it seems to be getting popular enough that
  25. # I should clean it up and have an "official" release of some type.
  26.  
  27. Hi Devon,
  28.  
  29.   Sorry for taking so long to get back to you, it's been *very* busy around
  30.   here.
  31.  
  32.   I've incorporated my 'diffs' into your latest sources and am forwarding
  33.   them to you as per our previous discussion. Obviously some of the stuff 
  34.   you probably don't want...
  35.  
  36.   Anyway, a couple of things you need to be aware of regarding the patches 
  37.   below:
  38.  
  39.   - we run a closed/secure net here, so rather than my users bothering you,
  40.     I've changed the name on who to report problems to.
  41.  
  42.   - SystemV.3 has a "slightly" different regexp facility, rather than
  43.     trying to modify your code to use this, I used a public domain
  44.     version, which is why you'll see some changes in this area.
  45.  
  46.   - The sockets code has been modified just enough to work in a TLI
  47.     environment instead.
  48.  
  49.   - Other than some pretty standard BSD vs SysV diffs, you shouldn't
  50.     find many other differences.
  51.  
  52.   - I've double checked, the patches below work well with the "patch"
  53.     utility.
  54.  
  55.   - I think I've got most everything contained behind "#ifdef", so
  56.     hopefully they can be integrated fairly cleanly.
  57.  
  58.   Hope you or someone find the differences useful. If you should have
  59.   a questions, please don't hesitate to contact me.
  60.  
  61. Thanks again and thanks for a great tool.
  62. Steve Bihler
  63. email: bihler@sequent.com
  64. tel:  1-503-578-4166
  65.  
  66. ==X======X=====X=====X=====X===== CUT HERE =====X=====X=====X=====X=====X====X==
  67. #! /bin/sh
  68. # This is a shell archive.  Remove anything before this line, then unpack
  69. # it by saving it into a file and typing "sh file".  To overwrite existing
  70. # files, type "sh file -c".  You can also feed this as standard input via
  71. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  72. # will see the following message at the end:
  73. #        "End of shell archive."
  74. # Contents:  Makefile.diffs callbook.c.diffs callbook.h.diffs
  75. #   canadian.c.diffs endian.c.diffs filter.c.diffs hash.c.diffs
  76. #   lookup.c.diffs misc.c.diffs print.c.diffs telnet.c.diffs
  77. # Wrapped by bihler@crg8 on Thu Apr  4 20:33:25 1991
  78. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  79. if test -f 'Makefile.diffs' -a "${1}" != "-c" ; then 
  80.   echo shar: Will not clobber existing file \"'Makefile.diffs'\"
  81. else
  82. echo shar: Extracting \"'Makefile.diffs'\" \(705 characters\)
  83. sed "s/^X//" >'Makefile.diffs' <<'END_OF_FILE'
  84. X1c1
  85. X< CFLAGS = -DINSTALL
  86. X---
  87. X> CFLAGS = -DINSTALL -DSYSV -DLOCAL -DDEBUG
  88. X3c3
  89. X< ALL = callbook hash endian canadian
  90. X---
  91. X> ALL = callbook hash endian canadian 
  92. X5,7c5,8
  93. X< HASHOBJ = hash.o misc.o
  94. X< CALLOBJ = callbook.o telnet.o misc.o lookup.o filter.o print.o
  95. X< ENDIANOBJ = endian.o
  96. X---
  97. X> HASHOBJ = hash.o misc.o strcasecmp.o
  98. X> CALLOBJ = callbook.o telnet.o misc.o lookup.o filter.o print.o \
  99. X>         regexp.o regerror.o
  100. X> ENDIANOBJ = endian.o strcasecmp.o
  101. X16c17
  102. X<     $(CC) -o callbook $(CALLOBJ)
  103. X---
  104. X>     $(CC) -o callbook $(CALLOBJ) -lc -lnsl -linet
  105. X23a25,28
  106. X> cb_notavail: cb_notavail.o telnet.o
  107. X>     $(CC) cb_notavail.o telnet.o -o cb_notavail -lc -lnsl -linet
  108. X> 
  109. X> 
  110. X25a31,33
  111. X> 
  112. X> install:
  113. X>     mv $(ALL) ../bin/
  114. END_OF_FILE
  115. if test 705 -ne `wc -c <'Makefile.diffs'`; then
  116.     echo shar: \"'Makefile.diffs'\" unpacked with wrong size!
  117. fi
  118. # end of 'Makefile.diffs'
  119. fi
  120. if test -f 'callbook.c.diffs' -a "${1}" != "-c" ; then 
  121.   echo shar: Will not clobber existing file \"'callbook.c.diffs'\"
  122. else
  123. echo shar: Extracting \"'callbook.c.diffs'\" \(1306 characters\)
  124. sed "s/^X//" >'callbook.c.diffs' <<'END_OF_FILE'
  125. X13d12
  126. X< #include <sys/socket.h>
  127. X16a16,20
  128. X> #ifdef BSD
  129. X> #include <sys/socket.h>
  130. X> #else
  131. X> #include <tiuser.h>
  132. X> #endif
  133. X17a22
  134. X> 
  135. X19a25,29
  136. X> #ifdef DEBUG
  137. X> FILE *dbf;
  138. X> int debug = 0;
  139. X> #endif
  140. X> 
  141. X22a33,36
  142. X> #ifdef SYSV
  143. X> extern  int errno, t_errno;
  144. X> #endif
  145. X> 
  146. X26c40,42
  147. X< main()
  148. X---
  149. X> main(argc, argv)
  150. X>     int argc;
  151. X>         char **argv;
  152. X29c45
  153. X<     int catch_size, quit=0;
  154. X---
  155. X>     int catch_size, quit=0, result;
  156. X35a52,67
  157. X> #ifdef SYSV
  158. X> tsync:
  159. X>         if( t_sync(0) < 0 ){
  160. X>                 if( t_errno == TSTATECHNG )
  161. X>                         goto tsync;
  162. X>                 t_error("callbook - t_sync failed");
  163. X>                 if (debug) {
  164. X>                         fprintf(dbf, "callbook - t_sync failed\n");
  165. X>                 }
  166. X>                 exit(1);
  167. X>         }
  168. X> #endif
  169. X> 
  170. X> #ifdef SYSV
  171. X>     if(getpeerinaddr(0, &catch_host, catch_size) == 0) 
  172. X> #else
  173. X36a69
  174. X> #endif
  175. X42c75
  176. X<     tputs("Callbook v1.2  Bug reports to bowen@cs.buffalo.edu  Type ", 0);
  177. X---
  178. X>     tputs("Callbook v1.2  Bug reports to bihler@sequent.com  Type ", 0);
  179. X288c321
  180. X<         tputs("No references found\n", 0);
  181. X---
  182. X>         tputs("No references found-a\n", 0);
  183. X322c355
  184. X<         tputs("No references found\n", 0);
  185. X---
  186. X>         tputs("No references found-b\n", 0);
  187. X357c390
  188. X<         tputs("No references found\n", 0);
  189. X---
  190. X>         tputs("No references found-c\n", 0);
  191. END_OF_FILE
  192. if test 1306 -ne `wc -c <'callbook.c.diffs'`; then
  193.     echo shar: \"'callbook.c.diffs'\" unpacked with wrong size!
  194. fi
  195. # end of 'callbook.c.diffs'
  196. fi
  197. if test -f 'callbook.h.diffs' -a "${1}" != "-c" ; then 
  198.   echo shar: Will not clobber existing file \"'callbook.h.diffs'\"
  199. else
  200. echo shar: Extracting \"'callbook.h.diffs'\" \(670 characters\)
  201. sed "s/^X//" >'callbook.h.diffs' <<'END_OF_FILE'
  202. X11c11
  203. X< #define DB_DIR "/gnu/ham_stuff/"
  204. X---
  205. X> #define DB_DIR "/home/bihler/callbook/database/"
  206. X16c16
  207. X< #define DB_TEXT "/gnu/ham_stuff/callsign.sort"
  208. X---
  209. X> #define DB_TEXT "/home/bihler/callbook/database/callsign.sort"
  210. X21c21
  211. X< #define HELP_DIR "/gnu/ham_stuff/help/"
  212. X---
  213. X> #define HELP_DIR "/home/bihler/callbook/help/"
  214. X26c26
  215. X< #define HELP_FILE "/gnu/ham_stuff/help/help"
  216. X---
  217. X> #define HELP_FILE "/home/bihler/callbook/help/help"
  218. X31c31
  219. X< #define HELP_PREFIX "/gnu/ham_stuff/help/help."
  220. X---
  221. X> #define HELP_PREFIX "/home/bihler/callbook/help/help."
  222. X36c36
  223. X< #define INFO_FILE "/gnu/ham_stuff/help/info_file"
  224. X---
  225. X> #define INFO_FILE "/home/bihler/callbook/help/info_file"
  226. END_OF_FILE
  227. if test 670 -ne `wc -c <'callbook.h.diffs'`; then
  228.     echo shar: \"'callbook.h.diffs'\" unpacked with wrong size!
  229. fi
  230. # end of 'callbook.h.diffs'
  231. fi
  232. if test -f 'canadian.c.diffs' -a "${1}" != "-c" ; then 
  233.   echo shar: Will not clobber existing file \"'canadian.c.diffs'\"
  234. else
  235. echo shar: Extracting \"'canadian.c.diffs'\" \(60 characters\)
  236. sed "s/^X//" >'canadian.c.diffs' <<'END_OF_FILE'
  237. X26a27,30
  238. X> #ifdef SYSV
  239. X> #define rindex strrchr
  240. X> #endif
  241. X> 
  242. END_OF_FILE
  243. if test 60 -ne `wc -c <'canadian.c.diffs'`; then
  244.     echo shar: \"'canadian.c.diffs'\" unpacked with wrong size!
  245. fi
  246. # end of 'canadian.c.diffs'
  247. fi
  248. if test -f 'endian.c.diffs' -a "${1}" != "-c" ; then 
  249.   echo shar: Will not clobber existing file \"'endian.c.diffs'\"
  250. else
  251. echo shar: Extracting \"'endian.c.diffs'\" \(52 characters\)
  252. sed "s/^X//" >'endian.c.diffs' <<'END_OF_FILE'
  253. X9a10,12
  254. X> #ifdef SYSV
  255. X> #include <fcntl.h>
  256. X> #endif
  257. END_OF_FILE
  258. if test 52 -ne `wc -c <'endian.c.diffs'`; then
  259.     echo shar: \"'endian.c.diffs'\" unpacked with wrong size!
  260. fi
  261. # end of 'endian.c.diffs'
  262. fi
  263. if test -f 'filter.c.diffs' -a "${1}" != "-c" ; then 
  264.   echo shar: Will not clobber existing file \"'filter.c.diffs'\"
  265. else
  266. echo shar: Extracting \"'filter.c.diffs'\" \(118 characters\)
  267. sed "s/^X//" >'filter.c.diffs' <<'END_OF_FILE'
  268. X8a9,11
  269. X> #ifdef LOCAL
  270. X> #include "regexp.h"
  271. X> #else
  272. X9a13,17
  273. X> #endif
  274. X> 
  275. X> #ifdef SYSV
  276. X> #define index strchr
  277. X> #endif
  278. END_OF_FILE
  279. if test 118 -ne `wc -c <'filter.c.diffs'`; then
  280.     echo shar: \"'filter.c.diffs'\" unpacked with wrong size!
  281. fi
  282. # end of 'filter.c.diffs'
  283. fi
  284. if test -f 'hash.c.diffs' -a "${1}" != "-c" ; then 
  285.   echo shar: Will not clobber existing file \"'hash.c.diffs'\"
  286. else
  287. echo shar: Extracting \"'hash.c.diffs'\" \(111 characters\)
  288. sed "s/^X//" >'hash.c.diffs' <<'END_OF_FILE'
  289. X38a39,41
  290. X> #ifdef SYSV
  291. X> #include <fcntl.h>
  292. X> #endif
  293. X47a51,54
  294. X> 
  295. X> #ifdef SYSV
  296. X> #define index strchr
  297. X> #endif
  298. END_OF_FILE
  299. if test 111 -ne `wc -c <'hash.c.diffs'`; then
  300.     echo shar: \"'hash.c.diffs'\" unpacked with wrong size!
  301. fi
  302. # end of 'hash.c.diffs'
  303. fi
  304. if test -f 'lookup.c.diffs' -a "${1}" != "-c" ; then 
  305.   echo shar: Will not clobber existing file \"'lookup.c.diffs'\"
  306. else
  307. echo shar: Extracting \"'lookup.c.diffs'\" \(135 characters\)
  308. sed "s/^X//" >'lookup.c.diffs' <<'END_OF_FILE'
  309. X9a10,12
  310. X> #ifdef SYSV
  311. X> #include <fcntl.h>
  312. X> #endif
  313. X14a18,22
  314. X> 
  315. X> #ifdef SYSV
  316. X> #define L_SET SEEK_SET
  317. X> #define index strchr
  318. X> #endif
  319. END_OF_FILE
  320. if test 135 -ne `wc -c <'lookup.c.diffs'`; then
  321.     echo shar: \"'lookup.c.diffs'\" unpacked with wrong size!
  322. fi
  323. # end of 'lookup.c.diffs'
  324. fi
  325. if test -f 'misc.c.diffs' -a "${1}" != "-c" ; then 
  326.   echo shar: Will not clobber existing file \"'misc.c.diffs'\"
  327. else
  328. echo shar: Extracting \"'misc.c.diffs'\" \(58 characters\)
  329. sed "s/^X//" >'misc.c.diffs' <<'END_OF_FILE'
  330. X11a12,15
  331. X> #ifdef SYSV
  332. X> #define index strchr
  333. X> #endif
  334. X> 
  335. END_OF_FILE
  336. if test 58 -ne `wc -c <'misc.c.diffs'`; then
  337.     echo shar: \"'misc.c.diffs'\" unpacked with wrong size!
  338. fi
  339. # end of 'misc.c.diffs'
  340. fi
  341. if test -f 'print.c.diffs' -a "${1}" != "-c" ; then 
  342.   echo shar: Will not clobber existing file \"'print.c.diffs'\"
  343. else
  344. echo shar: Extracting \"'print.c.diffs'\" \(58 characters\)
  345. sed "s/^X//" >'print.c.diffs' <<'END_OF_FILE'
  346. X12a13,16
  347. X> #ifdef SYSV
  348. X> #define index strchr
  349. X> #endif
  350. X> 
  351. END_OF_FILE
  352. if test 58 -ne `wc -c <'print.c.diffs'`; then
  353.     echo shar: \"'print.c.diffs'\" unpacked with wrong size!
  354. fi
  355. # end of 'print.c.diffs'
  356. fi
  357. if test -f 'telnet.c.diffs' -a "${1}" != "-c" ; then 
  358.   echo shar: Will not clobber existing file \"'telnet.c.diffs'\"
  359. else
  360. echo shar: Extracting \"'telnet.c.diffs'\" \(197 characters\)
  361. sed "s/^X//" >'telnet.c.diffs' <<'END_OF_FILE'
  362. X8a9,11
  363. X> #ifdef SYSV
  364. X> #include <stropts.h>
  365. X> #endif
  366. X30a34,39
  367. X> 
  368. X> #ifdef SYSV
  369. X>     if(ioctl(0,I_PUSH, "tirdwr") < 0) {
  370. X>                  syslog(LOG_ERR, "tirdwr failed - %m");
  371. X>         }
  372. X> #endif
  373. END_OF_FILE
  374. if test 197 -ne `wc -c <'telnet.c.diffs'`; then
  375.     echo shar: \"'telnet.c.diffs'\" unpacked with wrong size!
  376. fi
  377. # end of 'telnet.c.diffs'
  378. fi
  379. echo shar: End of shell archive.
  380. exit 0
  381.  
  382.